public class HomeWork11_03{
    public static void main(String[] args){
        int[] arr = new int[]{1, 2, 3, 4, 5};
        IntArrIndexOdd.printIntArrIndexOdd(arr);
    }
}

class IntArrIndexOdd{
    public static void printIntArrIndexOdd(int[] arr){
        for(int i = 1; i < arr.length; i += 2){
            System.out.println(arr[i]);
        }
    }
}